-- GENERATED SPELL FOR [Celebrian Dryad] --


function spell0_11793(pUnit, Event) --@Dispel Magic,n/a--
pUnit:FullCastSpellOnTarget(17201,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11793', 541, 1)
end

function spell1_11793(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(16000,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11793', 612, 1)
end

function Sorts_11793(pUnit, Event)
local choix_sorts_11793 = math.random(0, 1)
if choix_sorts_11793 == 0 then
pUnit:RegisterEvent('spell0_11793', 1, 1)
end
if choix_sorts_11793 == 1 then
pUnit:RegisterEvent('spell1_11793', 1, 1)
end
end

function mob11793_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11793', math.random(1500, 3000), 1)
end

function mob11793_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11793_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11793_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11793, 1, 'mob11793_Action')
RegisterUnitEvent(11793, 2, 'mob11793_Leave')
RegisterUnitEvent(11793, 3, 'mob11793_Kill')
RegisterUnitEvent(11793, 4, 'mob11793_Die')
